package com.example.secondhand.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.secondhand.model.shOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDao extends BaseMapper<shOrder> {
    int deleteByPrimaryKey(Long id);

    int insert(shOrder record);

    int insertSelective(shOrder record);

    shOrder selectByPrimaryKey(Long id);

    List<shOrder> getMyOrder(Long userId);

    List<shOrder> getAllOrder(int begin, int nums);

    int countAllOrder();

    List<shOrder> findOrderByIdleIdList(List<Long> idleIdList);

    int updateByPrimaryKey(shOrder record);
}